package com.ruoyi.api.abuwx.api;

import com.ruoyi.api.abuwx.domain.dto.FeedbackDto;
import com.ruoyi.api.abuwx.service.ICFeedbackService;
import com.ruoyi.common.annotation.SaClientCheckLogin;
import com.ruoyi.common.core.domain.AjaxResult;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zouhuu
 * @description 客户端用户反馈管理模块API
 * @date 2022/06/27 09:06:53
 */
@RestController
@RequestMapping("/api/abuwx")
@Api(tags = "客户端-用户反馈模块API")
public class FeedbackApi {

    @Autowired
    private ICFeedbackService icFeedbackService;

    @SaClientCheckLogin
//    @ApiOperation("意见反馈")
    @PostMapping("/feedback")
    public AjaxResult feedback(@RequestBody FeedbackDto feedbackDto) {
        icFeedbackService.feedback(feedbackDto);
        return AjaxResult.success("ok");
    }
}
